from django.conf.urls import url
from django.urls import re_path

from users_lab import views

urlpatterns = [
    re_path(r'^sms_codes/(?P<mobile>1[3-9]\d{9})/$', views.SMSCodeView.as_view()),
    re_path(r'^usernames/(?P<username>\w{5,20})/count/$', views.UsernameCountView.as_view()),
    re_path(r'^mobiles/(?P<mobile>1[3-9]\d{9})/count/$', views.MobileCountView.as_view()),
    re_path(r'^users/$', views.RegisterView.as_view()),
    re_path(r'^authorizations/$', views.UserAuthorizeView.as_view()),
    re_path(r'^oauth/qq/authorization/$', views.QQFirstView.as_view()),
    re_path(r'^oauth/qq/user/$', views.QQUserView.as_view()),
    # 退出登录
    re_path(r'^logout/$', views.LogoutView.as_view()),
]



